import { http } from "@/utils/http";
import type { AxiosResponse } from "axios";

const baseUrl = "home/home-tally-book";

export type HomeTallyBook = {
  name: string;
};

export default {
  page(pageParams, queryParams) {
    return http.getData(baseUrl + "/page", {
      params: {
        current: pageParams.currentPage,
        size: pageParams.pageSize,
        ...queryParams
      }
    });
  },

  submit(obj) {
    return http.postData(baseUrl + "/submit", { data: obj });
  },

  delete(ids) {
    return http.postData(baseUrl + "/delete", { data: ids });
  }
};
